package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.*;
import org.dromara.system.domain.SimMallOrder;
import org.dromara.system.domain.base.BasePageReqDTO;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 商城订单业务对象 sim_mall_order
 *
 * @author Lion Li
 * @date 2025-08-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SimMallOrder.class, reverseConvertGenerate = false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SimMallOrderBo extends BasePageReqDTO {

    /**
     *
     */
    private Long id;

    /**
     *
     */
    private Long userId;

    /**
     * 订单编号
     */
    private String orderNo;

    /**
     * 商品id
     */
    @NotNull(message = "商品ID不能为空！")
    private Long commodityId;

    /**
     * 物流订单号
     */
    private String logisticsNo;

    /**
     * 数量
     */
    @NotNull(message = "商品数量不能为空！")
    private Integer number;

    /**
     * 订单总金额
     */
    @NotNull(message = "订单总金额不能为空！")
    private BigDecimal amount;


    //订单单价
    private BigDecimal orderUnitPrice;

    /**
     * 订单状态
     */
    private Integer status;

    /**
     * 地址
     */
//    @NotBlank(message = "地址不能为空", groups = {AddGroup.class, EditGroup.class})
    private String address;

    /**
     * 备注
     */
    private String remark;


    private Integer payType;


    private String openId;

    private String userName;

    private String nickName;

    private String realName;

    private Date startTime;

    private Date endTime;

    private String commodityTitle;


}
